<template>
  <div class="item" :style="`background-image: url(${bgURL});`">
    <div class="top1">{{ name }}</div>
    <div class="top2">
      <label>{{ value }}</label
      ><span>{{ unit }}</span>
    </div>
  </div>
</template>

<script>
export default {
  name: "ItemCount",
  props: {
    bgURL: {
      type: String,
      default: "",
    },
    name: {
      type: String,
      default: "",
    },
    value: {
      default: 0,
    },
    unit: {
      type: String,
      default: "",
    },
  },
  data() {
    return {
      // 版本号
      version: "3.8.9",
    };
  },
  methods: {},
};
</script>

<style scoped lang="scss">
.item {
  background-repeat: no-repeat;
  background-position: left;
  padding: 10px 0px 10px 60px;
  margin: 25px 15px;
  .top1 {
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 0px;
    margin-bottom: 10px;
  }
  .top2 {
    label {
      font-size: 22px;
      font-weight: bold;
      line-height: 24px;
      letter-spacing: 0px;
      font-variation-settings: "wght" 700;
      background: linear-gradient(180deg, #00eeff 0%, #ffffff 99%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }
    span {
      font-size: 12px;
    }
  }
}
</style>
